-- GENERATED SPELL FOR [Dragonflayer Prisoner] --


function spell0_24255(pUnit, Event) --@Flash Heal,Heal--
pUnit:FullCastSpellOnTarget(43516,pUnit)
pUnit:RegisterEvent('Sorts_24255', 1500, 1)
end

function spell1_24255(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(9734,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24255', 2500, 1)
end

function Sorts_24255(pUnit, Event)
local choix_sorts_24255 = math.random(0, 1)
if choix_sorts_24255 == 0 then
pUnit:RegisterEvent('spell0_24255', 1, 1)
end
if choix_sorts_24255 == 1 then
pUnit:RegisterEvent('spell1_24255', 1, 1)
end
end

function mob24255_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24255', math.random(1500, 3000), 1)
end

function mob24255_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24255_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24255_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24255, 1, 'mob24255_Action')
RegisterUnitEvent(24255, 2, 'mob24255_Leave')
RegisterUnitEvent(24255, 3, 'mob24255_Kill')
RegisterUnitEvent(24255, 4, 'mob24255_Die')
